<{include file="../common/iframe_header.tpl"}>
<link href="/css/uploadify.css" rel="stylesheet">
<div class="pad_10" style="margin-top: 40px;">
    <div class="table-list">
        <div class="common-form">
            <input type="file" name="upfile" id="uploadify"/>
            <div>请选择ZIP文件包</div>
        </form>
        </div>
    </div>

</div>

   
<script src="/js/jquery.uploadify.min.js"></script>
<script type="text/javascript">
    $('#uploadify').uploadify({
        //'debug': true,
        'formData'      : {'bank_id' : '<{$bank_id}>'},
        'buttonText' : '请选择ZIP文件',
        'fileObjName' : 'upfile',   
        'swf'      : '/js/uploadify.swf',
        'fileTypeExts' : '*.zip;*.rar',
        'uploader' : '/webadmin/attach/NetcommonZip',
        'onUploadSuccess' : function(file, data, response) {
            var obj = eval('(' + data + ')');
            if (obj.state =='SUCCESS'){
                alert('上传成功');
                window.parent.location.reload();
            } else {
                alert(obj.error);
            }
        } 
    });
</script>
<{include file="../common/footer.tpl"}>